local thbattle__dayaojing_maimeng = fk.CreateSkill {

  name = "thbattle__dayaojing_maimeng",

  tags = { Skill.Compulsory, },

}



thbattle__dayaojing_maimeng:addEffect(fk.DrawNCards, {
  anim_type = "drawcard",
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(thbattle__dayaojing_maimeng.name) and player:isWounded()
  end,
  on_use = function(self, event, target, player, data)
    data.n = data.n + player.maxHp - player.hp
  end
})

return thbattle__dayaojing_maimeng